import dayjs from 'dayjs';

export const formatDate = (date, pattern = 'YYYY-MM-DD HH:mm:ss') => {
  return dayjs(date).format(pattern);
};